import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Editor from '../components/MarkDownEditor.vue'
import GankAndroid from '../components/GankAndroid.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/editor',
      name: 'Editor',
      component: Editor
    },
    {
      path: '/gankAndroid',
      name: 'GankAndroid',
      component: GankAndroid
    },
    {
      path: '/ios',
      component: resolve => require(['../components/GankIos.vue'], resolve)
    }
  ]
})
